/*	YAHOO.example.container.wait =
	        new YAHOO.widget.Panel("wait",
	        		{ width:"240px",
	              fixedcenter:true,
	              close:false,
	              draggable:false,
	              zindex:4,
	              modal:true,
              visible:false
            }
        );

YAHOO.example.container.wait.setHeader("Loading, please wait...");
YAHOO.example.container.wait.setBody('<img src="http://l.yimg.com/a/i/us/per/gr/gp/rel_interstitial_loading.gif" />');
YAHOO.example.container.wait.render(document.body);
*/
var YUD = YAHOO.util.Dom;
var YUE = YAHOO.util.Event;
(function(){

	YUE.onContentReady("submit", function(e){
    	alert("submit.......");
    	YUE.on(this,"click",showProcessing);
    });
	YUE.onContentReady("reset", function(e){
		YUE.on(this,"click",hideProcessing);
    });
	function showProcessing()
	{
		YUD.get("updateProgressDiv").style.display = 'block';
	}
	function hideProcessing() {
		YUD.get("updateProgressDiv").style.display = 'none';
	}
})();